package com.example.spring.spring.bean.post_process_before;

import com.example.spring.spring.register.bean.BeanData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @author: orange
 * @create: 2023-08-10 23:10
 * @description:
 */
@Component
public class OrangeBeforePostProcessor implements InstantiationAwareBeanPostProcessor {
//    @Override
//    public Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws BeansException {
//        System.out.println("before bean-post-processor");
//        return null;
//    }

    private BeanData beanData;

    public OrangeBeforePostProcessor(@Autowired BeanData data) {
        this.beanData = data;
    }


    public void init() {
        System.out.println("OrangeBeforePostProcessor init");
    }
}
